package service;

import dao.DamnDao;
import entity.Damn;

import java.sql.SQLException;
import java.util.List;

/**
 * @Author: DELL
 * @Since: 2024/9/26 10:41
 * @Description:
 */
public class DamnService {
    private final DamnDao dao=new DamnDao();
    public List<Damn> getAll() {
        return dao.getAll();
    }
    public int addStudent(Damn damn){
        return dao.addStudent(damn);
    }
    public int UpdateStudent(Damn damn){
        return dao.UpdateStudent(damn);
    }
    public int DeleteStudent(Damn damn){
        return dao.DeleteStudent(damn);
    }
}
